/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ToolboxPanel.java
 *
 * Created on 2011-04-03, 16:58:59
 */

package view;


import java.awt.event.ActionListener;
/**
 *
 * @author Tomek
 */
public class ToolboxPanel extends javax.swing.JPanel {
    private NodeItem nodeItem;
    private EdgeItem edgeItem;

    /** Creates new form ToolboxPanel */
    public ToolboxPanel() {
        initComponents();
       
    }




    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();

        setMinimumSize(new java.awt.Dimension(358, 112));
        setPreferredSize(new java.awt.Dimension(358, 112));
        setLayout(null);

        jLabel1.setText("Elementy:");
        add(jLabel1);
        jLabel1.setBounds(10, 0, 70, 14);
    }// </editor-fold>//GEN-END:initComponents

    public void setNodeView(NodeItem view) {
        nodeItem = view;
        add(nodeItem);
        nodeItem.setBounds(90, 20, nodeItem.getWidth(),nodeItem.getHeight());


    }

    public void setEdgeView(EdgeItem view){
         edgeItem = view;
        add(edgeItem);
        edgeItem.setBounds(220,20,edgeItem.getWidth(),edgeItem.getHeight());
    }

    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables

 


}
